/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Core;

/**
 *
 * @author Ghost
 */
 import java.security.*;
 import java.math.*;
  
 public class MD5 {
    public  String md5hash(String s){
        try{
            MessageDigest m=MessageDigest.getInstance("MD5");
            m.update(s.getBytes(),0,s.length());
            s = new BigInteger(1,m.digest()).toString(16);
        }catch(Exception e){
            System.err.println("Exception:"+e);
        }
        return s;
    }
 
 }